<div class="col-md-8">
<div class="main-content" id="main-content">
	<div class="sub-content">
		<div class="top-header page-header clearfix">
			
				<h1>Bidders on selected product</h1>
					
		</div>
		<div class="product_table table-responsive">			
		</div>
		<div class="adding_list">
			<div class="botton_btns form-group">
				<div class="col-sm-3">&nbsp;</div>
						<div class="col-sm-9">						
					<a class="btn btn-danger" role="button" href="<? echo $this->Url('products')?>/bid-sent">Back</a>
				</div>
			</div>
		</div>
	</div>
</div></div>    
<input type="hidden" id="hid_pro_id" name="hid_pro_id" value="<? if(isset($_GET['product']) && $_GET['product']!=""){ echo $_GET['product']; }?>">
<script>
$(function(){
var productId=$("#hid_pro_id").val();
$('.product_table').html('Please wait loading....');
	$.ajax({
		type:	'GET',
		dataType:'json',
		url:BASE_PATH+'/products/status-bids-list-ajax?product='+productId,
		success: function(data){
		$('.product_table').html('<table border="1" cellpadding="0" cellspacing="0" width="100%" id="search_results"><thead><tr class="bg_header"><td>SNO</td><td>User Name</td><td width="77px;">Product Name&nbsp;</td><td>Bid Price</td><td>Status</td></tr></thead><tbody></tbody></table>');	
		eval(data);
		var oTable = $('#search_results').dataTable( {
					aoColumnDefs: [{bSortable: false,
									aTargets: [ 0 ]
									}],
					"bStateSave": true,
					"bAutoWidth": true,
					"sRowSelect": "multi",
					"sPaginationType": "full_numbers",
					"bProcessing": true,
 					"aaData": data,
					"aoColumns": [
						{ "mData": "sno" },
						{ "mData": "username" },
						{ "mData": "productname" },
						{ "mData": "bidprice" },
						{ "mData": "status" },
					] 
				});			
		}
	});
});
</script>